<template>
    <div>
        <p @click="alert985">{{ name }}</p>
        <p @click="alert985">{{ address }}</p>
        <p @click="alert985">{{ worth }}</p>
        <Student></Student>
    </div>
</template>

<script>
import Student from "./Student.vue";
// 通过es6的模块化引入schmixin
import { schmixin } from "./mymixin";

export default {
    name: "School",
    components: {
        Student,
    },
    data() {
        return {
            name: "希望小学",
            address: "红buff上草",
        };
    },
    // 通过数组的方式引入mixin
    mixins: [schmixin],
};
</script>

<style></style>
